package com.create.builder;

/**
 * 套餐构建者
 * @author xiaobing
 * @version 1.0
 * @date 2021/9/6 4:10 下午
 */
public class MealBuilder {
    /**
     * 准备蔬菜套餐
     */
    public Meal prepareVegMeal(){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Pepsi());
        meal.setMealName("蔬菜套餐");
        return meal;
    }

    /**
     * 准备鸡肉套餐
     * @return
     */
    public Meal prepareChickenMeal(){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Coke());
        meal.setMealName("鸡肉套餐");
        return meal;
    }

}
